package masterjava.common.shared.entity;

import java.io.Serializable;

/**
 * User: Grigory Kislin
 * Date: 24/06/11
 */
public interface GenericEntity<ID extends Serializable> extends Serializable {

    abstract public ID getId();

    abstract public void setId(Long id);

    abstract public void prepareToSerialize();

    public void prepareToPersist();
}
